package behavioral.iterator.self;

public class Client {
	public static void main(String[] args) {
		final String[] a = new String[] { "a", "b", "c" };
		final Aggregate<String> aggregate = new ConcreteAggregate<String>(a);
		final Iterator<String> itr = aggregate.createIterator();
		while (itr.hasNext()) {
			System.out.println(itr.next());
		}
	}
}
